Fedora 20
Sponsored Link

Clamav - AntiVirus
2013/12/18
 
Install Clam AntiVirus to protect from virus.
[1] Install Clamav
[root@dlp ~]#
yum -y install clamav clamav-update
[root@dlp ~]#
vi /etc/freshclam.conf
# line 8: make it comment

#
Example
[root@dlp ~]#
freshclam
# update pattern files

ClamAV update process started at Tue Dec 18 20:39:50 2013
Downloading main.cvd [100%]
main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
Downloading daily.cvd [100%]
daily.cvd updated (version: 18248, sigs: 607318, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 235, sigs: 44, f-level: 63, builder: dgoddard)
Database updated (3031587 signatures) from database.clamav.net (IP: 203.178.137.175)
[2] Try to scan
# try to scan

[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 3026235
Engine version: 0.98
Scanned directories: 2
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 9.065 sec (0 m 9 s)

# download trial virus

[root@dlp ~]#
wget http://www.eicar.org/download/eicar.com
# try to scan again

[root@dlp ~]#
clamscan --infected --remove --recursive .

# just detected

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 3026235
Engine version: 0.98
Scanned directories: 6
Scanned files: 8
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.432 sec (0 m 8 s)
 
Tweet